package com.nifostasky.entity;


import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.IdType;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;

/**
 * (TUser)表实体类
 *
 * @author makejava
 * @since 2021-09-28 16:44:19
 */
@Data
@TableName(value = "t_user")
public class TUser implements Serializable{

    private static final long serialVersionUID = 1L;

        /**
    *主键自增:
    *表id
    */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;


        /**
    *fk,所属组织
    */
    @TableField(value = "to_id")
    private Long toId;

        /**
    *登录账号
    */
    @TableField(value = "login_name")
    private String loginName;

        /**
    *用户密码
    */
    @TableField(value = "password")
    private String password;

        /**
    *用户名
    */
    @TableField(value = "username")
    private String username;

        /**
    *手机号
    */
    @TableField(value = "mobile")
    private String mobile;

        /**
    *电子邮箱
    */
    @TableField(value = "email")
    private String email;

        /**
    *创建时间
    */
    @TableField(value = "gen_time")
    private Date genTime;

        /**
    *登录时间
    */
    @TableField(value = "login_time")
    private Date loginTime;

        /**
    *上次登录时间
    */
    @TableField(value = "last_login_time")
    private Date lastLoginTime;

        /**
    *登录次数
    */
    @TableField(value = "count")
    private Long count;

}
